﻿@model List<CMP.ERP.Model.Users>
@{
    Layout = null;
}
@Html.Action("Account_Show", "Account");
    <div class="content">
        <div class="right" id="mainFrame">
            <div class="right_cont">
                <!-- 顶部 -->

                <div id="middle">
        <div class="Switch"></div>
        <script type="text/javascript">
            $(document).ready(function (e) {
                $(".Switch").click(function () {
                    $(".left").toggle();
                });
            });
        </script>

        <div class="right" id="mainFrame">
            <div class="right_cont">
                <ul class="breadcrumb">
                    当前位置：
                    <a href="/Home/Index">首页</a>
                    <span class="divider">/</span>
                    账号管理
                </ul>
                <div class="title_right"><strong>账号管理</strong></div>
                <div style="width:100%; margin:auto">
                    <div>
                        <form action="/Shop/SelUsers" method="get">
                            <table>
                                <tr>
                                    <td>账号名称:</td>
                                    <td><input type="text" name="UName" /></td>
                                    <td><button type="submit" class="btn btn-default" style="margin-bottom:10px"><spanpxclass="icon-search" ></spanpx>查询 </button></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                    <div style="margin-top:20px;">
                        <table class="table  table-hover table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>编码</th>
                                    <th>账号</th>
                                    <th>密码</th>
                                    <th>名称</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach(var item in Model)
                                {
                                    <tr>
                                        <td>@item.UIds</td>
                                        <td>@item.UName</td>
                                        <td>@item.UPwd</td>
                                        <td>@item.CompanyName</td>
                                        <td>
                                            @if (@item.Ustate == "正常")
                                            {
                                                <a href="/Shop/StateUsers/@item.UIds">封号</a>
                                            }
                                            else
                                            {
                                                <a href="/Shop/StateUsers/@item.UIds">解封</a>
                                            }
                                        </td>
                                        <td><a href="/Shop/DelUsers/@item.UIds" onclick="return confirm('真的要删除吗?')">删除</a>|<a href="/Shop/UpdUsers/@item.UIds">修改</a></td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
            </div>
        </div>
    </div>

